{extend name="layout"}

{block name="content"}
	
	<form {if empty($data)} action="{:url('admin/category_type/save', ['category_id' => $Request.param.category_id])}" {else /} action="{:url('admin/category_type/update', ['category_id' => $Request.param.category_id, 'id' => $data->id])}" {/if} method="post">

	<div class="form-group text-secondary">
		当前分类: {$category->name}
	</div>
	<div class="form-group col-7">
		<label for="">名称</label>
		<input type="text" class="form-control" name="name" value="{$data->name??''}">
	</div>
	{if isset($data)} <input name="_method" value="PUT" type="hidden"> {/if}
	<div class="form-group col-7">
		<label for=""></label>
		<button class="btn btn-primary">提交</button>
	</div>
	</form>

{/block}